<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=<device-width>, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        //循环数组
       <ul>
         <li v-for="(item, index) in music">{{item.name}}-----{{index+1}}</li>
       </ul>
       //循环对象
       <ul>
        <li v-for="(item, index) in obj" :key="index">{{item}}-----{{index}}</li>
       </ul>

    </div>
</body>
<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    new Vue({
        el:"#app",
        data:{
            music:[
                {name:'青花瓷'},
                {name:'十年'},
                {name:'那一夜'},
                {name:'西游记后传'}
            ],
            obj:{
                name:'猪猪侠',
                age:'4',
                sex:'男'
            }
        }
    })
</script>
</html>